package com.sia.springcloud.result;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Sirius
 * @Date: 2021/9/21 1:41
 * @Description:
 **/
//@Data
public class GridDataResult<T> {
    private long total;
    private List<T> root = new ArrayList<>();

    public GridDataResult() {
    }

    public GridDataResult(long total, List<T> root) {
        this.total = total;
        this.root = root;
    }

    public List<T> getRoot() {
        return root;
    }

    public void setRoot(List<T> root) {
        this.root = root;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
